package com.selenium.page;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.selenium.util.GetByLocator;

import com.selenium.base.DriverBase;

public class LoginPage extends BasePage{
	

	public LoginPage(DriverBase driver) {
		super(driver);
	}

	public WebElement getUserElement() {
		return findElement(GetByLocator.getLocator("userInput"));
	}
	
	public WebElement getSignButtonElement() {
		By by = GetByLocator.getLocator("signButton");
		return findElement(by);
	}
	
	public WebElement getPasswordInputElement() {
		return findElement(GetByLocator.getLocator("pwdInput"));
	}
	
	public WebElement getLoginButtonElement() {
		By by = GetByLocator.getLocator("loginButton");
		return findElement(by);
	}
}
